package controllers;

import play.libs.Json;
import play.mvc.Controller;
import play.mvc.Result;

import java.util.Map;

public class HelloController extends Controller {

    public Result hello(String name) {
        return ok(Json.toJson(Map.of("message", "Hello, " + name, "code", 200)));
    }
}
